@ECHO OFF
ECHO Creating bundle
rd /s /q bundle > NUL 2>&1
md bundle
md bundle\docs
md bundle\media
md bundle\scripts
md bundle\ai
md bundle\data
md bundle\lang
md bundle\gm

xcopy /Y bin\ai\compat_*.nut bundle\ai > NUL 2>&1
xcopy /Y bin\data\*.grf bundle\data > NUL 2>&1
xcopy /Y bin\data\*.obg bundle\data > NUL 2>&1
xcopy /Y bin\data\*.obs bundle\data > NUL 2>&1
xcopy /Y bin\data\opntitle.dat bundle\data > NUL 2>&1
xcopy /Y bin\lang\*.lng bundle\lang > NUL 2>&1
xcopy /Y bin\gm\*.obm bundle\gm > NUL 2>&1
xcopy /Y readme.txt bundle > NUL 2>&1
xcopy /Y COPYING bundle > NUL 2>&1
xcopy /Y known-bugs.txt bundle > NUL 2>&1
xcopy /Y docs\obg_format.txt bundle\docs > NUL 2>&1
xcopy /Y docs\multiplayer.txt bundle\docs > NUL 2>&1
xcopy /Y docs\32bpp.txt bundle\docs > NUL 2>&1
xcopy /Y changelog.txt bundle > NUL 2>&1
xcopy /Y media\openttd.32.xpm bundle\media > NUL 2>&1
xcopy /Y media\openttd.*.png bundle\media > NUL 2>&1
xcopy /Y bin\scripts\* bundle\scripts > NUL 2>&1
xcopy /Y objs\Win32\Release\openttd.exe bundle > NUL 2>&1

ECHO Bundle created
